package com.garmin.tw.garminpcsync.common.domain.xmlrpc;

import java.io.Serializable;
import java.util.List;

public class UpdateAvailabilityResult implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8070741929967197877L;

	private Integer returnCode;
	
	private String esn;
	
	private List<SoftwareUpdateInfo> softwareUpdateInfoList;
	
	private List<MapUpdateInfo> mapUpdateInfoList;

	/**
	 * Gets the return code of this device, and only in following list:<br>
	 * <ul>
	 * <li> 1: Success<br>
	 * <li>61: DeviceXML parsing error<br>
	 * <li>-1: Error<br>
	 * <ul>
	 * @return the return code of this device
	 */
	public Integer getReturnCode() {
		return returnCode;
	}

	/**
	 * Sets the return code of this request.
	 * @param returnCode
	 */
	public void setReturnCode(Integer returnCode) {
		this.returnCode = returnCode;
	}

	/**
	 * Gets the ESN of this device.
	 * @return the ESN of this device
	 */
	public String getEsn() {
		return esn;
	}

	/**
	 * Sets the ESN of this device.
	 * @param esn
	 */
	public void setEsn(String esn) {
		this.esn = esn;
	}

	/**
	 * Gets the software update information list of this device.
	 * @return the software update information list 
	 */
	public List<SoftwareUpdateInfo> getSoftwareUpdateInfoList() {
		return softwareUpdateInfoList;
	}

	/**
	 * Sets the software update information list of this device.
	 * @param softwareUpdateInfoList
	 */
	public void setSoftwareUpdateInfoList(
			List<SoftwareUpdateInfo> softwareUpdateInfoList) {
		this.softwareUpdateInfoList = softwareUpdateInfoList;
	}

	/**
	 * Gets the map update information list of this device.
	 * @return the map update information list of this device
	 */
	public List<MapUpdateInfo> getMapUpdateInfoList() {
		return mapUpdateInfoList;
	}

	/**
	 * Sets the map update information list of this device.
	 * @param mapUpdateInfoList
	 */
	public void setMapUpdateInfoList(List<MapUpdateInfo> mapUpdateInfoList) {
		this.mapUpdateInfoList = mapUpdateInfoList;
	}
}
